﻿using GalaSoft.MvvmLight;
using System;

namespace WPRD.Models
{
    /// <summary>
    /// 雷达台站模型
    /// </summary>
    public partial class RadarSite : ObservableObject
    {
        #region Private Properties
        /// <summary>
        /// 区站号
        /// </summary>
        private string _stationNumber;
        
        /// <summary>
        /// 台站名
        /// </summary>
        private string _station;
        
        /// <summary>
        /// 雷达型号
        /// </summary>
        private string _radarType;
        
        /// <summary>
        /// 天线所在经度
        /// </summary>
        private Decimal _longitude;

        /// <summary>
        /// 天线所在纬度
        /// </summary>
        private Decimal _latitude;
        
        /// <summary>
        /// 海拔高度
        /// </summary>
        private Decimal _altitude;
        #endregion

        #region Creator
        /// <summary>
        /// 构造函数
        /// </summary>
        public RadarSite()
        {

        }
        #endregion

        #region Public Properties
        /// <summary>
        /// 区站号
        /// </summary>
        public string StationNumber
        {
            get
            {
                return _stationNumber;
            }
            set
            {
                if (value == _stationNumber)
                    return;
                _stationNumber = value;
                RaisePropertyChanged("StationNumber");
            }
        }

        /// <summary>
        /// 台站名
        /// </summary>
        public string Station
        {
            get
            {
                return _station;
            }
            set
            {
                if (value == _station)
                    return;
                _station = value;
                RaisePropertyChanged("Station");
            }
        }

        /// <summary>
        /// 雷达型号
        /// </summary>
        public string RadarType
        {
            get
            {
                return _radarType;
            }
            set
            {
                if (value == _radarType)
                    return;
                _radarType = value;
                RaisePropertyChanged("RadarType");
            }
        }

        /// <summary>
        /// 天线所在经度
        /// </summary>
        public Decimal Longitude
        {
            get
            {
                return _longitude;
            }
            set
            {
                if (value == _longitude)
                    return;
                _longitude = value;
                RaisePropertyChanged("Longitude");
            }
        }

        /// <summary>
        /// 天线所在纬度
        /// </summary>
        public Decimal Latitude
        {
            get
            {
                return _latitude;
            }
            set
            {
                if (value == _latitude)
                    return;
                _latitude = value;
                RaisePropertyChanged("Latitude");
            }
        }

        /// <summary>
        /// 海拔高度
        /// </summary>
        public Decimal Altitude
        {
            get
            {
                return _altitude;
            }
            set
            {
                if (value == _altitude)
                    return;
                _altitude = value;
                RaisePropertyChanged("Altitude");
            }
        }
        #endregion
    }
}
